/*    */ package server.maps;
/*    */ 
/*    */

import client.MapleClient;
import tools.MaplePacketCreator;
import tools.packet.MTSCSPacket;

/*    */
/*    */

/*    */
/*    */ public class MapleMapEffect
/*    */ {
/*  9 */   private String msg = "";
/* 10 */   private int itemId = 0; private int effectType = -1;
/*    */   private boolean active = true;
/*    */   private boolean jukebox = false;
/*    */   
/*    */   public MapleMapEffect(String msg, int itemId) {
/* 15 */     this.msg = msg;
/* 16 */     this.itemId = itemId;
/* 17 */     this.effectType = -1;
/*    */   }
/*    */   
/*    */   public MapleMapEffect(String msg, int itemId, int effectType) {
/* 21 */     this.msg = msg;
/* 22 */     this.itemId = itemId;
/* 23 */     this.effectType = effectType;
/*    */   }
/*    */   
/*    */   public void setActive(boolean active) {
/* 27 */     this.active = active;
/*    */   }
/*    */   
/*    */   public boolean isJukebox() {
/* 31 */     return this.jukebox;
/*    */   }
/*    */   
/*    */   public void setJukebox(boolean actie) {
/* 35 */     this.jukebox = actie;
/*    */   }
/*    */   
/*    */   public byte[] makeDestroyData() {
/* 39 */     return this.jukebox ? MTSCSPacket.INSTANCE.playCashSong(0, "") : MaplePacketCreator.removeMapEffect();
/*    */   }
/*    */   
/*    */   public byte[] makeStartData() {
/* 43 */     return this.jukebox ? MTSCSPacket.INSTANCE.playCashSong(this.itemId, this.msg) : MaplePacketCreator.startMapEffect(this.msg, this.itemId, this.effectType, this.active);
/*    */   }
/*    */   
/*    */   public void sendStartData(MapleClient c) {
/* 47 */     c.announce(makeStartData());
/*    */   }
/*    */ }


/* Location:              C:\PGX\Server.jar!\server\maps\MapleMapEffect.class
 * Java compiler version: 8 (52.0)
 * JD-Core Version:       1.1.3
 */